gdb-avr software package provides GNU Debugger for avr, you can install in your Ubuntu 17.04 (Zesty Zapus) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install gdb-avr
gdb-avr is installed in your system.
Make ensure the gdb-avr package were installed using the commands given below,
$ sudo dpkg-query -l | grep gdb-avr *
You will get with gdb-avr package name, version, architecture and description in a table
| Distro | Ubuntu 17 04 zesty zapus |
| Section | Development |
| Package | gdb-avr |
| Version | 7.7-4 |
| Description | GNU Debugger for avr |
| Sub Section | devel |